package com.msb.user_api;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 使用hystrix时接口头部不可以加注解的路径
 */
//@RequestMapping("/user")
public interface IUserApi {

    @GetMapping("/alive")
    String alive();

    @PostMapping("/post/postPerson")
    Person postPerson(@RequestBody Person person);
}
